<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="fragment" content="!">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title ng-bind="global.title2+' | '+global.title">AngularJS中文社区</title>
    <meta name="title" content="{{global.metatitle}}">
    <meta name="description" content="{{global.metadesc}}">
    <meta name="keywords" content="{{global.keywords}}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="http://cdn.angularjs.cn/favicon.ico"/>
    <link rel="stylesheet" href="http://cdn.angularjs.cn/{{_css/jsgen.min.css_}}">
    <link rel="stylesheet" href="http://cdn.angularjs.cn/{{_css/font-awesome.min.css_}}">
    <script src="http://cdn.angularjs.cn/{{_js/reserveLoad.min.js_}}"></script>
  </head>
  <!--[if lt IE 8]> <body class="ie pure-g-r"> <![endif]-->
  <!--[if gt IE 7]><!--> <body class="pure-g-r ng-cloak" ng-cloak> <!--<![endif]-->
    <div class="pure-u-1 menu">
      <div class="pure-menu pure-menu-open pure-menu-horizontal wrap">
        <ul class="pure-menu-logo">
          <li><a class="pure-menu-img" href="/"><img height="50" src="http://cdn.angularjs.cn/img/logo.png"/></a></li>
          <li><a href="/">{{global.title}}</a></li>
        </ul>
        <ul ng-if="!global.isPhone">
          <li><a href="/tag/JavaScript">JavaScript</a></li>
          <li><a href="/tag/AngularJS">AngularJS</a></li>
          <li><a href="/tag/Node.js">Node.js</a></li>
          <li><a href="/tag/jsGen">jsGen</a></li>
        </ul>
        <ul class="right user" ng-if="!global.isLogin">
          <li><a href="/register"><i class="fa fa-user-md"></i>注册</a></li>
          <li><a href="/login"><i class="fa fa-signin"></i>登录</a></li>
        </ul>
        <ul class="right user" ng-if="global.isLogin">
          <li><a class="pure-menu-img" href="/home"><img class="img-mini" src="http://cdn.angularjs.cn/img/avatar.png" gen-src="{{global.user.avatar}}"/></a></li>
          <li ng-if="global.isDesktop"><a href="/home"><i class="fa fa-home"></i>{{global.user.name}}</a></li>
          <li ng-if="global.isEditor"><a href="/admin"><i class="fa fa-gear"></i>管理</a></li>
          <li ng-if="global.isDesktop"><a ng-click="logout()"><i class="fa fa-signout"></i>退出</a></li>
        </ul>
      </div>
    </div>
    <!--[if lt IE 9]>
      <div class="pure-u ie-msg warning text-center">您的浏览器太老土啦，请升级<a href="http://browsehappy.com/" target="_blank">新版浏览器</a>，或者安装<a href="http://www.google.com/chromeframe/?redirect=true"  target="_blank">Google Chrome浏览器内嵌框架</a>！</div>
    <![endif]-->
    <!--[if lt IE 8]>
      <div class="pure-u ie-logo text-center">
        <img src="http://cdn.angularjs.cn/img/angularjs.png" />
        <h1>AngularJS中文社区</h1>
      </div>
    <![endif]-->
    <div class="pure-u-1">
      <div id="main" ng-view></div>
    </div>
    <div class="pure-u-1 footer">
      <div class="wrap">
        <a class="muted" ng-href="{{global.url}}">{{global.title}}</a> ©2013 Powered by
        <a href="https://github.com/zensh/jsgen" target="_blank">jsGen {{global.info.version}}<i class="fa fa-flag hot"></i></a>
        <span ng-show="!global.isPhone">
          &nbsp;<a class="muted" href="http://angularjs.org" target="_blank">AngularJS {{global.info.angularjs}}</a>
          &nbsp;<a class="muted" href="http://nodejs.org" target="_blank">Node.js {{global.info.nodejs}}</a>
          &nbsp;<a class="muted" href="https://github.com/DoubleSpout/rrestjs" target="_blank">rrestjs {{global.info.rrestjs}}</a>
          &nbsp;<span>{{global.beian}}</span>
        </span>
      </div>
    </div>
    <div class="loading" ng-show="loading.show"></div>
    <script>
      (function () {
        var IE8 = !-[1,],
          jqVer = IE8 ? 'old' : 'min';

        reserveLoad(
          IE8 && 'http://cdn.angularjs.cn/{{_js/ie.min.js_}}', // load it if lt IE 9
          'http://cdn.angularjs.cn/js/jquery.' + jqVer + '.js',
          'http://cdn.angularjs.cn/{{_js/angular-all.min.js_}}',
          'http://cdn.angularjs.cn/{{_js/lib.min.js_}}',
          'http://cdn.angularjs.cn/{{_js/jsgen.min.js_}}',
          function (errorUrl) {
            if (errorUrl) {
              alert('Error loading: ' + errorUrl);
            } else {
              angular.bootstrap(document, ['jsGen']);
            }
          });
      })();
    </script>
  </body>
</html>